# break语句退出当前循环
#  找到 1000以内可以被7整除的前20个数

count = 0
for i in range(7,1000):
    if i % 7 == 0:
        print(i)
        count += 1
        if count == 20:
            break   # 终止当前循环体执行

print("-"*50)


count = 0
for i in range(7,1000,7):
    print(i)
    count += 1
    if count == 20:
        break